<?php if(Nuo::getUserId()):?>
<?php
	$resource=Nuo::getVar('mainResource');
	if(!$resource){
		$resource =  Nuo::getUser();
	}
?>
<div class="followBlock">
	<iframe name="newiframe" src="javascript:" class="hidden"></iframe>
	<form ""="" aria-cb="feed.addPostCallback" action="<?php echo Nuo::getUrl('activity/ajax/add'); ?>" enctype="multipart/form-data" method="post" target="newiframe">
	<input type="hidden" name="resource-item" value="<?php echo $resource->getItemId(); ?>" />
	<input type="hidden" name="feed_type" class="uiHiddenFeedType" value="" />
	<input type="hidden" name="format" value="jscript" />
	<div class="uiActivityFeedPostHd">
		<div class="clearfix">
			<i class="uiIconSmallIndicator uiHidden"></i>
			<ul class="uiList">
				<li>
					<a href="#" aria-action="<?php echo Nuo::getUrl('activity/ajax/add');?>" aria-click="jscript" aria-feed-type="activity:addPost" aria-cb="composer.post" class="uiActivityFeedPostHdLink inlineBlock bold uiActive">
						<i class="uiIcon uiFeedIconTypePost"></i> 
						<span>Update Status</span>
						<i class="uiIconComposerUp"></i>
					</a>				
				</li>
				<li>
					<a href="#" aria-action="<?php echo Nuo::getUrl('photo/ajax/add');?>" aria-click="jscript" aria-feed-type="photo:addNew" aria-cb="composer.photo" class="uiActivityFeedPostHdLink inlineBlock bold">
						<i class="uiIcon uiFeedIconTypePhoto"></i> 
						<span>Photos</span>
						<i class="uiIconComposerUp"></i>
					</a>
				</li>
				<li>
					<a href="#" aria-click="jscript" aria-action="<?php echo Nuo::getUrl('video/ajax/add');?>" aria-feed-type="video:addNew" aria-cb="composer.video" class="uiActivityFeedPostHdLink inlineBlock bold">
						<i class="uiIcon uiFeedIconTypeVideo"></i> 
						<span>Videos</span>
						<i class="uiIconComposerUp"></i>
					</a>
				</li>
			</ul>
		</div>
	</div>
	<div class="uiActivityFeedPostBd">
		<div class="uiPostComposer">
			<div class="uiMentionTypeAheadContainer">
				<div class="uiMentionHighlighterArea uiCommentHighlighterArea">
					<div class="innerWrap">
						<span class="uiMentionHighlighter"></span>
					</div>
				</div>
				<div class="uiTypeaheaMentiondArea">
					<div class="innerWrap">
						<textarea placeholder="<?php echo Intl::__('What\'s in your mind?'); ?>" name="add_comment_text_text" aria-focus="postComposer" class="uiMentionTypeahead"></textarea>
					</div>
				</div>
				<input type="hidden" name="add_comment_text" class="uiMentionHidden"/>
			</div>
		</div>
		<div class="uiActivityFeedPostAttachment">
			<div class="uiActivityFeedPostAttachmentFragment uiActivityFeedPostAttachmentLink">
				composer link here.
			</div>
			<div class="uiActivityFeedPostAttachmentFragment uiActivityFeedPostAttachmentPhoto">
				<input type="file" multiple="1" name="atms[photo][]"/>
			</div>
			<div class="uiActivityFeedPostAttachmentFragment uiActivityFeedPostAttachmentVideo">
				<div>
					Link:
				</div>
				<div>
					<input type="text" class="text title" name="atms[video_url]" />
				</div>
			</div>
		</div>
		<div class="uiPostComposerFt">
			<div class="clearfix">
				<div class="uiControlGroup rfloat">
					<div class="inlineBlock mright5">
						<?php echo $this->render('privacy/view/partial/privacy'); ?>
					</div>
					<div class="inlineBlock">
						<button class="button submit" type="submit"><?php echo Intl::__('Post'); ?></button>
					</div>
				</div>
			</div>
		</div>
	</div>
</form>
</div>
<?php endif; ?>